<?php
/**
 * True Gallery back-end move picture template file
 *
 * @version 2.5
 * @author Alexey N. Brin (userxp@joomlaportal.ru)
 * @homepage http://truegallery.ru 
 * @filename admin.pictures.move.tpl.php
 * @package True Gallery
 * @copyright (C) 2008-2009 by joomlatune.ru
 * @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html
 * 
 * THIS GALLERY is an EVOLUTION of AkoGallery -> PonyGallery -> DatsoGallery
 *
 * If you fork this to create your own project, 
 * please make a reference to True Gallery someplace in your code 
 * and provide a link to http://www.joomlatune.ru
 *
 **/

defined('_VALID_MOS') or defined('_JEXEC') or die('Direct Access to this location is not allowed.');


?>
<script type="text/javascript">
<!--
/*function showInfo(title, name, dimensions) {
	html = '<div style="width:100%;text-align:center;vertical-align:middle;"><img style="border:1px solid #fff;margin:20px" src='+name+' name="imagelib" alt="No Pics" /></div>';
	return overlib(html, CAPTION, title)
}
function editEntry(number) {
	var elm = document.getElementById('cb'+number);
	if (elm) {
		elm.checked = true;
	}
}*/
-->
</script>
<form action="<?php echo TRUE_INDEX2; ?>" method="post" name="adminForm" >
	
	<table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminheading">
		<tr>
			<th class="mediamanager"><?php echo JText::_('TG_MASS_MOVING_OF_PICS'); ?></th>
			<td></td>
		</tr>
	</table>
	
	<table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist">
		<tr>
			<th width="4%">#ID</th>
			<th class="title" width="20%"><?php echo JText::_('TG_PICS_TO_MOVING'); ?></th>
			<th width="26%"><div align="left"><?php echo JText::_('TG_CURRENT_CATEGORY'); ?></div></th>
			<th width="50%" align="left"><?php echo JText::_('TG_ALLOWED_CAT'); ?></td>
		</tr>
		<?php foreach ($rows as $row) {
			$imgprev = $mosConfig_live_site.$ad_path.'/thumbs/'.$row->catid.'/'.$row->imgthumbname; ?>
		<tr>
			<td align="center" width="2%" style="padding:7px"><?php echo $row->id; ?>
			<td align="left" width="20%">
				<a href="javascript:void(0);"<b><?php echo $row->imgtitle; ?></b></a>
				<img src="<?php echo $imgprev; ?>" width="30%" align="left" alt="" />
				<input type="hidden" name="images[]" value="<?php echo $row->id; ?>" />
			</td>
			<td><div align="left" width="75%"><?php echo JTrueGalleryHelper::showCategoryPath($row->catid); ?></div></td>
			<td valign="top">
				<?php echo $lists['catgs'] ?>&nbsp;&nbsp;<?php echo mosToolTip(JText::_('TG_MOVE_TO_CATEGORY')); ?>
			</td>
		</tr>
			<?php } ?>
		<tr>
			<th align="center" colspan="4"></th>
		</tr>
	</table>
	<input type="submit" name="execute" value="Execute" />
	<input type="hidden" name="option" value="<?php echo TG_CMP;?>" />
	<input type="hidden" name="task" value="moveresult" />
	<input type="hidden" name="boxchecked" value="1" />
	<?php foreach( $id as $ids ) { ?>
		<input type="hidden" name="id[]" value="<?php $ids; ?>" />
	<?php } ?>
</form>